<?php
class ModelTotalSubscriberDiscount extends Model {
    public function getSubscriberDiscount($data) {          
		$temp_total = 0;
		$rate = 0;
		$temp_total = $data['subtotal'];
		$rate = $temp_total * -1 * ((1 * $this->config->get('subscriber_discount_fee')) / 100);
				
		return $rate;
    }
}
?>